<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组 方法</title>
	<script type="text/javascript">
		var arr = [3,5,8,1,2];
		arr.reverse();
		console.info(arr);
		arr.sort();
		console.info(arr);
		arr.sort(function(a,b){
			return b-a;
		});
		console.info(arr);
		var a ={
			t:"ttt"
		};
		function test(a){
			console.info("function  "+a.t);
			a.t="dsfa";
			console.info("function  "+a.t);
		}
		console.info(a.t);
		test(a);
		console.info(a.t);
	</script>
</head>
<body>
	
</body>
</html>